import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

/***
 * 组件/方法/变量的导入和导出
 ***/

var DEFAULT_URL = 'www.com';
var DEFAULT_PATH = './js/common/';
const DEFAULT_PAGE_SIZE = 12;

export { DEFAULT_URL, DEFAULT_PATH, DEFAULT_PAGE_SIZE };

export default class EIComponent extends Component {
  render() {
    return <Text style={{ fontSize: 20, backgroundColor: '#ffa000' }}>导入和导出 {this.props.path} {this.props.size}</Text>
  }
}

export function sum(a, b) {
  return a + b;
}